﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeCamp.Models.Presenters.PresentersEditViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  <%= Html.Encode( Model.EventDisplayName ) %> | Edit presenter profile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  
  <h1 class="title">Edit your presenter profile</h1>

  <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>


  <p>Presenter profile for <%= Html.Encode( User.Identity.Name ) %></p>

  <% using ( Html.BeginForm() )
     {%>
      <fieldset>
        <div>
          <label for="FirstName">
            First Name:</label>
          <%= Html.TextBox("FirstName") %>
          <%= Html.ValidationMessage("FirstName", "*") %>
        </div>
        <div>
          <label for="LastName">
            Last Name:</label>
          <%= Html.TextBox("LastName") %>
          <%= Html.ValidationMessage("LastName", "*") %>
        </div>
        <div>
          <label for="TwitterName">
            Twitter Name (optional):</label>
          <%= Html.TextBox("TwitterName") %>
          <%= Html.ValidationMessage("TwitterName", "*") %>
        </div>
        <div>
          <label for="EmailAddress">
            Email Address (not displayed on public profile):</label>
          <%= Html.TextBox("EmailAddress") %>
          <%= Html.ValidationMessage("EmailAddress", "*") %>
        </div>
        <div>
          <label for="BlogUrl">
            Blog URL (optional):</label>
          <%= Html.TextBox("BlogUrl") %>
          <%= Html.ValidationMessage("BlogUrl", "*") %>
        </div>
        <div>
          <label for="WebsiteUrl">
            Website URL (optional):</label>
          <%= Html.TextBox("WebsiteUrl") %>
          <%= Html.ValidationMessage("WebsiteUrl", "*") %>
        </div>
        <div>
          <label for="ShirtSize">
            Shirt Size, unisex sizes (not displayed on public profile):</label>
          <%= Html.DropDownList("ShirtSize", 
                new []
                { 
                  new SelectListItem { Text = "S", Value = "S" },
                  new SelectListItem { Text = "M", Value = "M" },
                  new SelectListItem { Text = "L", Value = "L" },
                  new SelectListItem { Text = "XL", Value = "XL" },
                  new SelectListItem { Text = "XXL", Value = "XXL" },
                  new SelectListItem { Text = "XXXL", Value = "XXXL" },
                }, "Select shirt size" )%>
          <%= Html.ValidationMessage("ShirtSize", "*") %>
        </div>
        <div>
          <label for="SpeakerRateSpeakerUrl">
            SpeakerRate Speaker URL (optional):</label>
          <%= Html.TextBox("SpeakerRateSpeakerUrl") %>
          <%= Html.ValidationMessage( "SpeakerRateSpeakerUrl", "*" )%>
        </div>
        <div>
          <label for="Biography">
            Biography:</label>
          <%= Html.TextArea( "Biography", Model.Biography, 8, 72, null ) %>
          <%= Html.ValidationMessage("Biography", "*") %>
        </div>
        <div>
          <input type="submit" value="Save" />
        </div>
      </fieldset>
  <% } %>
  <div>
    <%=Html.ActionLink("Back to List", "List") %>
  </div>
</asp:Content>
